using System;
using ExtremeSwank.Authentication.OpenID;
using ExtremeSwank.Authentication.OpenID.Plugins.Extensions;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    protected void Page_PreRender(object sender, EventArgs e)
    {
        OpenIDUser oiu = ((OpenIDMasterPage)Master).OpenIDUser;
        if (User.Identity != null)
        {
            ASPNETName.Text = User.Identity.Name;
        }

        if (oiu != null)
        {
            ActualID.Text = oiu.BaseIdentity;
            Nickname.Text = oiu.GetValue(SimpleRegistrationFields.Nickname);
            Email.Text = oiu.GetValue(SimpleRegistrationFields.Email);
            DoB.Text = oiu.GetValue(SimpleRegistrationFields.DateOfBirth);
            Gender.Text = oiu.GetValue(SimpleRegistrationFields.Gender);
            FullName.Text = oiu.GetValue(SimpleRegistrationFields.FullName);
            // FullName.Text = oiu.GetValue(AttributeExchangeSchemaLEGACY.FullName.Uri);
        }
        else
        {
            PersonalPanel.Visible = false;
        }
    }
}
